package ${packageName}.modular.${modular}.service;

import java.util.List;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import ${packageName}.modular.${modular}.pojo.${className};

/**
*	${remark}
*/
public interface ${className}Service extends IService<${className}> {


	/**
	 * 条件查询 - ${remark}
	 * 
	 * @param page
	 * @param limit
	 * @return
	 */
	IPage<${className}> list(Integer current, Integer limit);
	
	/**
	 * 添加或者修改 - ${remark}
	 * 
	 * @param sys
	 * @return
	 */
	Boolean insertOrUpdate(${className} bean);

	/**
	 * 
	 * 根据ID删除数据 -${remark}
	 *
	 * @param id
	 * @return
	 */
	Integer delete(String id);

	/**
	 * 批量删除 - ${remark}
	 * 
	 * @param list
	 * @return
	 */
	Integer batchDelete(List<${className}> list);
	
	/**
	 * 清空 ${remark} 所有数据
	 */
	void deleteAll();
	
	/**
	 * 状态修改
	 * 
	 * @param id
	 * @param status
	 * @return
	 */
	Integer status(String id, boolean status);

	/**
	 * 批量启用 - ${remark}
	 * 
	 * @param list
	 * @return
	 */
	Integer online(List<${className}> list);

	/**
	 * 批量禁用 - ${remark}
	 * 
	 * @param list
	 * @return
	 */
	Integer offline(List<${className}> list);


}
